package com.ruoyi.auth.event;

import com.ruoyi.system.api.model.LoginUser;
import org.springframework.context.ApplicationEvent;

/**
 * @description: [登录事件源]
 * @author: [wangshujun]
 * @createDate: [2020/9/14 17:08]
 * @version: [v1.0]
 */
public class LoginEvent extends ApplicationEvent {

    private LoginUser loginUser;


    public LoginEvent(Object source,LoginUser loginUser) {
        super(source);
        this.loginUser=loginUser;
        System.out.println(">>>>>"+this.loginUser.getSysUser().getUserName()+"登录成功<<<<<<<<<<");
    }

    public LoginUser getLoginUser() {
        return loginUser;
    }

    public void setLoginUser(LoginUser loginUser) {
        this.loginUser = loginUser;
    }
}
